package base.day05;
public class Study3 {
    public static void main(String[] args) {
        //输出五位数中的回文数
        int count = 0;
        for (int i = 10000; i < 100000; i++) {//10101
            int gw, sw, qw, ww;
            gw = i % 10;
            sw = i / 10 % 10;
            qw = i / 1000 % 10;
            ww = i / 10000 % 10;
            if ((gw == ww) && (sw == qw)) {
                count++;
                System.out.println(i + "是回文数");
            }
        }
        System.out.println("五位回文数一共有：" + count + "个");
    }
}
